package com.zhixiang.xaec.entity.health;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.cfg.Comment;

import com.googlecode.jsonplugin.annotations.JSON;
import com.zhixiang.xaec.entity.BaseEntity;

@Entity
@Table(name="health_Monitor")
@Comment("监测")
public class Monitor extends BaseEntity{
	@Comment("监测人")
	@Column(length=200)
	private String monitorPerson;
	@Comment("监测时间")
	@Column(length=30)
	private Date monitorDate;
	@Comment("监测记录")
	@Column(length=1000)
	private String monitorRecord;
	
	@Comment("关联职业健康危害因素")
	private Long riskFactorsId;
	
	public String getMonitorPerson() {
		return monitorPerson;
	}
	public void setMonitorPerson(String monitorPerson) {
		this.monitorPerson = monitorPerson;
	}
	@JSON(format="yyyy-MM-dd")
	public Date getMonitorDate() {
		return monitorDate;
	}
	public void setMonitorDate(Date monitorDate) {
		this.monitorDate = monitorDate;
	}
	public String getMonitorRecord() {
		return monitorRecord;
	}
	public void setMonitorRecord(String monitorRecord) {
		this.monitorRecord = monitorRecord;
	}
	
	public Long getRiskFactorsId() {
		return riskFactorsId;
	}
	public void setRiskFactorsId(Long riskFactorsId) {
		this.riskFactorsId = riskFactorsId;
	}
}
